<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            width: 400px;
            height: 200px;
            border: 1px solid #000;
            display: flex;
            flex-wrap: wrap;
            background-color: orange;
            justify-content: space-evenly;
            align-content: space-evenly;
        }

        .inner {
            border: 1px solid #000;
            box-sizing: border-box;
            height: calc(100px - 10px);
            width: calc(calc(400px / 4) - 10px);
            background-color: yellow;
            /* padding: 5px;
            margin: 5px; */
        }
    </style>
</head>

<body>
    <div class="box">
        <div class="inner"></div>
        <div class="inner"></div>
        <div class="inner"></div>
        <div class="inner"></div>
        <div class="inner"></div>
        <div class="inner"></div>
        <div class="inner"></div>
        <div class="inner"></div>
    </div>
</body>

</html>